package com.study.modules.excel.esayExcel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.converters.date.DateStringConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * easyexcel实体类
 */
@Data
@TableName("temp_easy_excel")
public class TempEasyExcelEntity {

    @TableId(type = IdType.AUTO)
    private Long id;
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("年龄")
    private Integer age;
    @ExcelProperty("手机号")
    private String phone;
    @ExcelProperty(value = "创建时间", converter = DateStringConverter.class)
    private Date createTime;
}
